Computer Science Lesson Plan
Class: 5 - Lesson: 13 Code.org (Conditional Statement Introduction, Simple If, If Else - Activity)

Purpose: To learn conditional statements.

No. of Classes

One or two classes (teacher's decision).

Material Required

Laptop, cards.

Prior Knowledge

Students should know:

  • How to read a program as a sequence of steps.
  • Loops and repeat.
  • Exercise

    Exercise 1



    1. Introduction to conditional statements - simple if, and if else.

    Exercise 2



    1. Activity for conditional statements with simple if, if else, if path and do-else.

    Exercise 3



    1. Activity for debugging.

    Solution



  • Link to view the solution video for Exercise 1.
  • Link to view the output (solution) for Exercise 2
  • Link to view the output (solution) for Exercise 3

  • Teacher Instructions
    1. Teachers should have the materials ready for the card activity.
    2. Even if it takes time, teachers should look through the exercise and familiarise themselves with these exercise levels before giving them to the students.
    3. Students may do the exercise in their notebook first, before performing it on the computer.
    4. Teachers should then guide the students through the next levels.
    5. Use the terms "Simple if", "If else", "If path" and "Do else", etc. while teaching, so that students become familiar with them.
    6. Sign up for a teacher account and keep it open in another tab before using the code.org exercise.
    7. In this lesson you must finish 4 levels.If possible you can finish till 9 levels.